#include "scannerqr.hpp"
#include "../../agv/agv/camerabasea.hpp"

class opcvcam : public CameraBaseA
{
public:
    cv::VideoCapture c;
public:
    opcvcam()
        : CameraBaseA()
    {

    }

    virtual bool read(cv::Mat &image)
    {
        return c.read(image);
    }

    virtual void release()
    {
        c.release();
    }

    virtual bool open(int mode)
    {
        return c.open(mode);
    }

};


int main()
{
//            ScannerQR::test("ms8.png");

ScannerQR::test2();


    //opcvcam().test(0);

    //    opcvcam::Calib("20170721_095459/");


    return 0;
}
